AI Verified
Create Admin User via FTP
This function creates a new administrator user account in WordPress.
PHP
Voted: 0 by 0 user(s)
When you are locked out of your WordPress site and have no access to PHPMyAdmin, add this to your functions.php file to create a new admin user account. Remove it from the functions file after you’re successfully logged in. (The user will remain.)
The author has provided the following URL that may be helpful to setting up or using this snippet:
https://wpwhatnot.com/create-admin-user-via-ftp/Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
30/06/2023
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Potential vulnerability found : Hardcoded Credential
Found on line : 4
Code : ($pass='Password')
Vulnerable line : 4
Code : $pass='Password'
Found 1 vulnerabilities
0
Please see some snippets below related to this snippet..
WordPress Admin
AI Verified
Added: 10 months ago
Last Updated: 10 months ago
By default, Code Snippets will scroll the page up so that new notices are visible when editing or adding snippets. This snippet disables that functionality for those who prefer a more consistent editi...
WordPress Admin
AI Verified
Added: 2 years ago
Last Updated: 1 year ago
This snippet will remove the black admin bar from the top of the window if the user is not an Administrator.
WordPress Admin
AI Verified
Added: 2 years ago
Last Updated: 1 year ago
In $forbidden_message_strings array, provide a list of keywords or phrases that you want to disable. Provide a longer phrase to increase specificity
These are some popular snippets from this users codevault..
General
AI Verified
Added: 2 years ago
Last Updated: 2 months ago
This code defines a function named default_post_metadata__thumbnail_id that modifies the value of the _thumbnail_id metadata field for a post. The function takes five arguments: $value: The current...
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 6 months ago
This will disable comments on the entire site
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 11 months ago
This will disable automatic updates
Category
Snippet Status